package amit.ui.table;

import java.util.List;

import amit.ad.*;
import ca.odell.glazedlists.TextFilterator;

/**
 * 
 * @author ido
 *
 */
public class AdFilterator implements TextFilterator {
	
	public void getFilterStrings(List baseList, Object element) {
		AdDetails adTmp = (AdDetails) element;
		baseList.add(adTmp.getType());
		baseList.add(adTmp.getPrice());
		
		baseList.add(adTmp.getRooms());
		
		baseList.add(adTmp.getAddress());
		baseList.add(adTmp.getCity());
		baseList.add(adTmp.getComments());
	}
}